export default {
	// 写入token
	setToken(val) {
		uni.setStorageSync('token', val)
	},
	// 获取token
	getToken() {
		let token = uni.getStorageSync('token') ?? ''
		return token
	},
	// 删除token
	removeToken() {
		uni.removeStorageSync('token')
	},
}

export const getStorage = (key) => {
	return uni.getStorageSync(key)
}
export const setStorage = (key, v) => {
	uni.setStorageSync(key, v)
}
export const removeStorage = (key) => {
	uni.removeStorageSync(key)
}